package com.ua.secure.org.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ua.common.model.SysOrg;
import com.ua.secure.org.persistence.OrgMapper;


@Service
public class OrgServiceImpl implements OrgService{
	@Autowired
	private OrgMapper orgMapper;
	
	@Override
	public List<SysOrg> loadOrgsData() {
		return orgMapper.loadOrgsData();
	}
	@Override
	public void save(SysOrg org) {
		orgMapper.save(org);
		
	}
	
	@Override
	public void delete(String orgId) {
		
		orgMapper.delete(orgId);
		
	}
	/***/
	@Override
	public void update(SysOrg org) {
		orgMapper.update(org);
		
	}

	
	
	
	@Override
	public SysOrg queryOrgByOrgId(String orgId) {
		
		return orgMapper.queryOrgByOrgId(orgId);
	}
}
